package com.lzy.entity.dto;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;

import javax.persistence.Id;

import com.lzy.util.IpConverter;

public class IMBean {

	private BigDecimal UPAREAID ;
	private BigDecimal DATASOURCE ;
	// 场所编号
	private BigDecimal SITEID ;
	// IM类型
	@Id private BigDecimal IMTYPE ;
	// 捕获时间
	private Date CAPTURETIME ;
	// 版本号
	private String VERSION ;
	// 客户端ip
	private BigDecimal CLIENTIP ;
	// 服务器ip
	private BigDecimal SERVERIP ;
	// 源端口
	private BigDecimal CLIENTPORT ;
	// 宿端口
	private BigDecimal SERVERPORT ;
	// 源radius
	private String SRCRADIUS ;
	// 宿radius
	private String DESTRADIUS ;
	// 源mac
	private String SRCMAC ;
	// LogName
	private String LOGINNAME;
	// 类型
	private BigDecimal TYPE ;
	// 发送账号
	private String SRCID ;
	// 接收账号
	private String DESTID ;
	// 内容
	private String CONTENT ;

	private String A1 ;
	private String A2 ;
	private String A3 ;
	
	private BigDecimal ROWNUM_;

	public BigDecimal getUPAREAID() {
		return UPAREAID;
	}

	public void setUPAREAID(BigDecimal uPAREAID) {
		UPAREAID = uPAREAID;
	}

	public BigDecimal getDATASOURCE() {
		return DATASOURCE;
	}

	public void setDATASOURCE(BigDecimal dATASOURCE) {
		DATASOURCE = dATASOURCE;
	}

	public BigDecimal getSITEID() {
		return SITEID;
	}

	public void setSITEID(BigDecimal sITEID) {
		SITEID = sITEID;
	}

	public BigDecimal getIMTYPE() {
		return IMTYPE;
	}

	public void setIMTYPE(BigDecimal iMTYPE) {
		IMTYPE = iMTYPE;
	}

	public String getCAPTURETIME() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		String capture = sdf.format(CAPTURETIME);
		return capture;
	}

	public void setCAPTURETIME(Date cAPTURETIME) {
		CAPTURETIME = cAPTURETIME;
	}

	public String getVERSION() {
		return VERSION;
	}

	public void setVERSION(String vERSION) {
		VERSION = vERSION;
	}


	public String getSRCRADIUS() {
		return SRCRADIUS;
	}

	public void setSRCRADIUS(String sRCRADIUS) {
		SRCRADIUS = sRCRADIUS;
	}

	public String getDESTRADIUS() {
		return DESTRADIUS;
	}

	public void setDESTRADIUS(String dESTRADIUS) {
		DESTRADIUS = dESTRADIUS;
	}

	public String getSRCMAC() {
		return SRCMAC;
	}

	public void setSRCMAC(String sRCMAC) {
		SRCMAC = sRCMAC;
	}

	public String getLOGINNAME() {
		return LOGINNAME;
	}

	public String getCLIENTIP() {
		return IpConverter.longToIP(this.CLIENTIP.longValue());
	}

	public void setCLIENTIP(BigDecimal cLIENTIP) {
		CLIENTIP = cLIENTIP;
	}

	public String getSERVERIP() {
		return IpConverter.longToIP(this.SERVERIP.longValue());
	}

	public void setSERVERIP(BigDecimal sERVERIP) {
		SERVERIP = sERVERIP;
	}

	public BigDecimal getCLIENTPORT() {
		return CLIENTPORT;
	}

	public void setCLIENTPORT(BigDecimal cLIENTPORT) {
		CLIENTPORT = cLIENTPORT;
	}

	public BigDecimal getSERVERPORT() {
		return SERVERPORT;
	}

	public void setSERVERPORT(BigDecimal sERVERPORT) {
		SERVERPORT = sERVERPORT;
	}

	public void setLOGINNAME(String lOGNAME) {
		LOGINNAME = lOGNAME;
	}

	public BigDecimal getTYPE() {
		return TYPE;
	}

	public void setTYPE(BigDecimal tYPE) {
		TYPE = tYPE;
	}

	public String getSRCID() {
		return SRCID;
	}

	public void setSRCID(String sRCID) {
		SRCID = sRCID;
	}

	public String getDESTID() {
		return DESTID;
	}

	public void setDESTID(String dESTID) {
		DESTID = dESTID;
	}

	public String getCONTENT() {
		return CONTENT;
	}

	public void setCONTENT(String cONTENT) {
		CONTENT = cONTENT;
	}

	public String getA1() {
		return A1;
	}

	public void setA1(String a1) {
		A1 = a1;
	}

	public String getA2() {
		return A2;
	}

	public void setA2(String a2) {
		A2 = a2;
	}

	public String getA3() {
		return A3;
	}

	public void setA3(String a3) {
		A3 = a3;
	}

	public BigDecimal getROWNUM_() {
		return ROWNUM_;
	}

	public void setROWNUM_(BigDecimal rOWNUM_) {
		ROWNUM_ = rOWNUM_;
	}
	
	
}
